﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="company_town.aspx.cs" Inherits="HY.WEB.SA.company_town" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
       <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
    <div >
    
        <ext:PageManager ID="PageManager1" runat="server"  AutoSizePanelID="Panel3"  />
        <ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>

            <ext:Panel ID="Panel3" runat="server" BodyPadding="5px" EnableBackgroundColor="true" AutoScroll="true"  
             Title="Panel" ShowHeader="false" ShowBorder="false">
            <Items>

        <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true" AutoScroll="true"  
            ShowBorder="true"  Title="Panel" ShowHeader="false">
            <Items>
     
<ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true">
<Rows>
<ext:FormRow ID="FormRow1" runat="server">
<Items>

<ext:DropDownList ID="ddlfiled" runat="server" Label="选择镇区"  >
</ext:DropDownList>


    <ext:Button ID="btnSearch" OnClick="ttbSearchMessage_Trigger2Click" Icon="Zoom" runat="server"  Text="高级查询" >
    </ext:Button>
</Items>
</ext:FormRow>

</Rows>
</ext:Form>
                 
          </Items>
        </ext:Panel>

   <ext:Panel ID="Panel2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="false" ShowHeader="false" Title="Panel">
            <Items>

   <ext:Grid ID="Grid1" Title="数据列表"     PageSize="15" ShowBorder="true" ShowHeader="true"  Height="500px"  AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid,cbh,cname" AllowSorting="true" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" >
         <Toolbars   >
            <ext:Toolbar ID="Toolbar1"  runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="新增数据" Visible="false" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                    <ext:Button ID="btnDelete" Text="取消收藏" Icon="CakeOut" Visible="false"  OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                      <ext:Button ID="Button1" Text="删除选中项到回收站" Icon="Delete"  Visible="false" OnClick="btnDelete2_Click" runat="server">
                    </ext:Button>
                      <ext:Button ID="btdele" Text="彻底删除选中项（不能恢复）"  Visible="false" Icon="Delete" OnClick="btnDelete3_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
   
               <ext:BoundField  Width="70px"   DataField="cbh" DataFormatString="{0}" SortField="cbh" HeaderText="编号" />
               
                  <ext:HyperLinkField  Width="180px"   DataToolTipField="cname" DataTextField="cname"  SortField="cname" HeaderText="企业名称" 
            DataNavigateUrlFields="cbh" DataNavigateUrlFormatString="comp_view_job.aspx?cbh={0}" DataNavigateUrlFieldsEncode="true"   Target="_blank" />
                        <ext:TemplateField Width="30px"  HeaderText="重点客户" >
               <ItemTemplate>            
                    <asp:Image ID="Image2" runat="server" ToolTip='<%#highttip(Eval("cbh").ToString())%>' ImageUrl=<%#hightico(Eval("cbh").ToString())%>  /> 
                 </ItemTemplate>                      
             </ext:TemplateField>
                  <ext:TemplateField Width="30px"  HeaderText="收藏" >
                <ItemTemplate>            
                    <asp:Image ID="Image1" runat="server" ImageUrl=<%#checkico(Eval("cbh").ToString())%>  />            
              
                      </ItemTemplate>                     
             </ext:TemplateField>
           <ext:BoundField Width="70px" DataField="compnum" HeaderText="企业规模" />
           <ext:CheckBoxField Width="60px" RenderAsStaticField="true" DataField="yn" HeaderText="公司客户" />            
              <ext:BoundField  Width="50px" DataField="slevel" DataFormatString="{0}" SortField="slevel" HeaderText="业务级别" />
               <ext:BoundField  Width="100px" DataField="person" DataFormatString="{0}" SortField="person" HeaderText="联系人" />
              <ext:BoundField  Width="100px"  DataField="ctel" DataFormatString="{0}" SortField="ctel" HeaderText="公司电话" />
                  <ext:BoundField  Width="80px"   DataField="mtel" DataFormatString="{0}" SortField="mtel" HeaderText="手机" />
             <ext:BoundField  Width="50px"  DataField="cntype" DataFormatString="{0}" SortField="cntype" HeaderText="企业性质" />
                                     
                  <ext:BoundField  Width="120px"  DataField="addresss" DataFormatString="{0}" SortField="addresss" HeaderText="地址" />
              

                <ext:BoundField   Width="150px"  DataField="updtime" DataFormatString="{0:yyyy-MM-dd hh:MM:ss}" HeaderText="更新日期" />               
                  

 <ext:BoundField   Width="50px"  DataField="cnum" DataFormatString="{0}" SortField="cnum" HeaderText="签约次数" />
  <ext:BoundField  Width="50px"    DataField="sales" DataFormatString="{0}" SortField="sales" HeaderText="业务员" />   
           
      
          
        </Columns>
    </ext:Grid>

                     
          </Items>
        </ext:Panel>

           <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="609px">
    </ext:Window>

                    
          </Items>
        </ext:Panel>
    </div>
    </form>
</body>
</html>
